Contracts in Practice

نویسندگان

  • H.-Christian Estler
  • Carlo A. Furia
  • Martín Nordio
  • Marco Piccioni
  • Bertrand Meyer
چکیده

Contracts are a form of lightweight formal specification embedded in the program text. Being executable parts of the code, they encourage programmers to devote proper attention to specifications, and help maintain consistency between specification and implementation as the program evolves. The present study investigates how contracts are used in the practice of software development. Based on an extensive empirical analysis of 21 contract-equipped Eiffel, C#, and Java projects totaling more than 260 million lines of code over 7700 revisions, it explores, among other questions: 1) which kinds of contract elements (preconditions, postconditions, class invariants) are used more often; 2) how contracts evolve over time; 3) the relationship between implementation changes and contract changes; and 4) the role of inheritance in the process. It has found, among other results, that: the percentage of program elements that include contracts is above 33% for most projects and tends to be stable over time; there is no strong preference for a certain type of contract element; contracts are quite stable compared to implementations; and inheritance does not significantly affect qualitative trends of contract usage.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Investigating and Comparing the Position of Force Majeure and the Impossibility of Contracts in Iranian Oil Contracts

The effect of the two legal entities of force majeure and the impossibility (frustration) of the contract is almost similar, and that is the impossibility of fulfilling the obligation or contract. However, these two theories, although are very similar in practice, have some differences that distinguish them from each other; Initially, the question was what is the nature of the two institutions ...

متن کامل

American Option Pricing of Future Contracts in an Effort to Investigate Trading Strategies; Evidence from North Sea Oil Exchange

In this paper, Black Scholes’s pricing model was developed to study American option on future contracts of Brent oil. The practical tests of the model show that market priced option contracts as future contracts less than what model did, which mostly represent option contracts with price rather than without price. Moreover, it suggests call option rather than put option. Using t hypothesis test...

متن کامل

بررسی جنبه‌های حقوقی قرارداد مشارکت در تولید دارو

Collaboration in drug delivery is a project by which a pharmecutical product is delivered through the cooperation of two or more legal persons. In this cooperation, a party contributes to the project with know-how and formula of a medicine and the other party provides site, necessary fund and equepments. Success in such a project requires a legal agreement entitled collaboration contracts in dr...

متن کامل

Silence and its Effects on Municipal Contracts in the City of Iran, America and the UK

despite important  role that has parties volition in the contract based on article 191, contract espousal will be achieve  bused on  advisable something that is under contract the important role that has silence  in the contract may not be responsible but in practice has very legal effects for contract parties. Legal volition is formant from implication and adoption since silence  is not, silen...

متن کامل

An Experimental Investigation of Pull Contracts

We conduct an investigation of supply chain contracts where a supplier incurs the holding cost of inventory and uses it to directly satisfy a retailer's demand. These contracts, known as " pull " contracts, have increased in popularity in practice, but have yet to be studied empirically. We investigate three pull contracts in a controlled laboratory environment: a wholesale price contract and t...

متن کامل

Spring is a good time to clean up your vendor contracts.

Whether it's a new purchase or renewal, every year physicians and hospitals obligate themselves financially to vendor contracts without fully understanding the terms and conditions of their commitments. Some of these contracts renew automatically without permission or approval and come with automatic price increases. In some cases, practices may even be paying for services no longer being used ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2014